from person import Person


class Teacher(Person):
    def __init__(self, name: str, age: int, number: str, teaching_age: int):
        Person.__init__(self, name, age)
        self._number = number
        self._teaching_age = teaching_age

    @property
    def No(self):
        return self._number

    @property
    def Ta(self):
        return self._teaching_age

    def NewDisp(self):
        print(f"{self.Name}， {self.Age} 岁，教龄 {self._teaching_age} 年，工号 {self._number}")
